package com.peak.distribution.vo.agent;

import com.peak.distribution.enums.AwardType;
import com.peak.distribution.enums.Constants;
import com.peak.spring.boot.api.web.IdVo;
import com.peak.spring.boot.core.mapper.Format;
import com.peak.spring.boot.core.mapper.Format.TransferFormat;
import com.peak.spring.boot.core.mapper.Transfer;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class DisAgentAwardLogVo extends IdVo {

	private static final long serialVersionUID = Constants.DISTRIBUTION_VERSION;
	
	/** 到账账户ID */
	@Transfer(mapping = "account.id")
	private Integer accountId;
	
	/** 奖金类型 */
	@Format(format = TransferFormat.ENUM)
	private AwardType type;
	
	/** 奖励时间 */
	private String awardTime;
	
	/** 奖励金额 */
	@Format(format = TransferFormat.MONEY_CENT)
	private Integer awardAmount;
	
	/** 源自的订单订单号 */
	@Transfer(mapping = "order.orderNo")
	private String orderNo;
}
